package cn.imvc.app.domains;

import java.util.HashMap;
import java.util.Map;

public class AppResult {
	
	private String code;
	
	private String msg;

	public AppResult() {
	}

	public AppResult(String code,String msg){
		this.code=code;
		this.msg=msg;
	}
	
	public Map<String,Object> toMap(){
		Map<String,Object> map=new HashMap<String,Object>();
		map.put("code", this.code);
		map.put("msg", this.msg);
		return map;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
